import { HouseData, Housedel,typebuilding,Adddata,typeDataall} from "./type"
import { get,post} from "../request"
//房间列表
export const HouseList=(data:HouseData)=>{
     return get("houses/list",data);
}
//删除
export const Getdel=(data:Housedel)=>{
     return get("houses/delete",data);
}
//批量删除
export const Getdelall=(data:typeDataall)=>{
     return post("houses/deleteall",data);
}
//楼栋列表
export const buildinglist=(data?:typebuilding)=>{
     return get("building/list",data);
}
//添加
export const HouseAdd=(data:Adddata)=>{
     return post("houses/add",data);
}